/*
 * @Description: 可以在这里实现一些动作去改变状态
 * @Autor: lele
 * @Date: 2021-11-17 16:25:34
 * @FilePath: \zz-1111\src\components\js\state\store\action.js
 * @LastEditTime: 2021-11-22 10:49:33
 * @note: 
 * @demo: https://gitee.com/SimonaGo/corresponding-formula
 */

let action = {
    add: function (state,val) {
         state.age  = 21;
    },
    sub:function(state,val){
         state.age -- ;
    },
    changeName:function(state,val){
         state.names = '李四' ;
    },
    arrOberser:function (state,val){
      state.arr[0] = '1010';
      state.arr[1] = 'hello';
      state.arr[2].ha.ao = 'hello,world';
    }
}

exports.action = action